//https://javiercbk.github.io/json_to_dart/
class BannerModel extends Object {
  List<Banner>? banner;

  BannerModel({this.banner});

  BannerModel.fromJson(Map<String, dynamic> json) {
    if (json['banner'] != null) {
      banner = <Banner>[];
      json['banner'].forEach((v) {
        banner!.add(Banner.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (banner != null) {
      data['banner'] = banner!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Banner {
  int? bannerId;
  String? pic;
  String? title;

  Banner({this.bannerId, this.pic, this.title});

  Banner.fromJson(Map<String, dynamic> json) {
    bannerId = json['bannerId'];
    pic = json['pic'];
    title = json['title'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['bannerId'] = bannerId;
    data['pic'] = pic;
    data['title'] = title;
    return data;
  }
}
